﻿package mortal.game.view.combinedServer.item
{
    import com.mui.controls.*;
    import com.mui.display.*;
    import mortal.game.manager.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class CombinedSerTabCell extends GSprite implements ITabBar2Cell
    {
        protected var _bg:ScaleBitmap;
        protected var _selectFilter:ScaleBitmap;
        protected var _title:GImageBitmap;
        private var _active11TabData:CombinedSerTabData;

        public function CombinedSerTabCell()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bg = UIFactory.bg(0, 2, 189, 56, this, ImagesConst.AchievemenListTabBtnBg);
            this._selectFilter = UIFactory.bg(-3, -2, 196, 64, this, ImagesConst.MountCardSelectBg);
            this._title = UIFactory.gImageBitmap(ImagesConst.CombinedSerTab1, 17, 19, this);
            this.mouseEnabled = true;
            this._selectFilter.visible = false;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._bg = null;
            this._selectFilter = null;
            this._title = null;
            super.disposeImpl(param1);
            return;
        }// end function

        public function hasRw(param1:Boolean) : void
        {
            if (param1)
            {
                EffectManager.glowFilterReg(this);
            }
            else
            {
                EffectManager.glowFilterUnReg(this);
            }
            return;
        }// end function

        public function set selected(param1:Boolean) : void
        {
            this._selectFilter.visible = param1;
            return;
        }// end function

        public function set data(param1:Object) : void
        {
            this._active11TabData = param1 as CombinedSerTabData;
            this._title.imgUrl = this._active11TabData.getImageHead();
            return;
        }// end function

        public function over() : void
        {
            return;
        }// end function

        public function out() : void
        {
            return;
        }// end function

    }
}
